<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // let number = 0;
        // console.log(typeof number);
        // number = !!number;
        // console.log(number)
        // console.log(Boolean(number));

        // let string = "houd";
        // console.log(!!string);
        // console.log(Boolean(string));

        // let array = [];
        // console.log(!!array);
        // console.log(Boolean(array));

        // let obj = {}
        // console.log(!!obj);
        // console.log(Boolean(obj));

        let date = new Date();
        console.log(!!date);
        console.log(Boolean(date));

    </script>
</body>

</html>